package br.com.orion.sga.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import br.com.orion.sga.model.dao.UfDao;
import br.com.orion.sga.model.entities.Uf;

@Service
public class UfService {

	@Autowired
	private UfDao ufDao;
	
	/**
	 * @return all data of table uf storage on database
	 */
	public List<Uf> listAll() {
		return ufDao.listAll();
	}
	
	public Uf getById(Integer id) {
		return ufDao.getById(id);
	}
}
